<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ page import="com.utbm.lo54.entity.Course"%>
<%@ page import="com.utbm.lo54.entity.Location"%>
<%@ page import="com.utbm.lo54.entity.Session"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel=stylesheet type="text/css" href="design.css">
<title>Insert title here</title>
</head>
<body>

	</br>
	<h1><c:out value="${course.getCode()}" /> :
	<c:out value="${course.getTitle()}" />
	<br />Session : 
	<c:out value="${session.getStartDate()}" /> -
	<c:out value="${session.getEndDate()}" /> 
	<br />
	in
	<c:out value="${location.getCity()}" /></h1>
	<c:set var="sessionid">${session.getId()}</c:set>
	</br></br>

<table>
<form method="POST" name="myform" action="InscriptionServlet">
<tr><td>Firstname : </td><td><input type="text" name="firstname"/></td></tr>
<tr><td>Lastname : </td><td><input type="text" name="lastname"/></td></tr>
<tr><td>Address : </td><td><input type="text" name="address"/></td></tr>
<tr><td>Phone : </td><td><input type="text" name="phone"/></td></tr>
<tr><td>Email : </td><td><input type="text" name="email"/></td></tr>
<input type="hidden" name="sessionid" value="${session.getId()}" />
<tr><td><input type="submit" value="OK" /></td></tr>
</form>
</table>
</body>
</html>